package chess;


public class UserListMSG implements IMSG {
	private String event;
	private String playerName;
	private String playerId;
	public UserListMSG(String event,String name,String id){
		
			this.event = event;
			this.playerName = name;
			this.playerId = id;
	}
	@Override
	public String toXML() {
		StringBuffer sb = new StringBuffer();
		sb.append("<message for=\"user\"");
		sb.append(" event=\""+this.event+"\"");
		sb.append(" pname=\""+this.playerName+"\"");
		sb.append(" pid=\""+this.playerId+"\"");
		sb.append("/>");
		return sb.toString();
	}

}
